Skip to main content

All Questions

1vote
1answer
125views

Out-of-Range Target Variable in Sequence-based Machine Learning Model

I'm encountering a scaling issue in a machine learning project. I'm predicting a target variable from an input sequence (and doing this for many). However, I've encountered a challenge where the ...
Bloggy's user avatar
1vote
1answer
316views

Scale dataset while preserving relative distributions between columns

I have a large dataset with 460 columns. The columns have names such as 'AppOpen_1day', 'AppOpen_2day', ...... 'AppOpen_15day', 'Dig_Pos_1day', 'Dig_Pos_2day', ...... 'DigPos_15day' etc. Each column ...
SacredMechanic's user avatar
1vote
0answers
24views

Clustering Similar Articles Using Mixed Data: Seeking Advice and Validation

Question: I'm working on a project where I need to cluster a dataset of articles based on various features, including text, numeric values, and categorical data. I've implemented a clustering approach ...
sara sara's user avatar
2votes
4answers
437views

Are scalers or encoders supposed to be serialized along with trained models?

Consider the very basic example below: ...
Muhammad Usman's user avatar
1vote
1answer
37views

When training a sklearn machine learning model, what part of a data from a csv file needs scaling like MaxAbsScaler or MinMaxScaler?

Consider the code below: ...
Muhammad Usman's user avatar
2votes
1answer
1kviews

StandardScaler and MinMaxScaler vs RobustScaler

I've recently read that Standard Scaler functions best in situations where the distribution of the features are approximately normal. MinMaxScaler works in a way that it preserves the features' ...
Arthur Caldas's user avatar
1vote
2answers
1kviews

problem with standardScaler

problem with standardScaler hi I'd like to scale one column in the titanic data set. I am using the following code segment. for some reason df_scaled results an empty set. how can I solve it? what is ...
Mehmet Deniz's user avatar
1vote
1answer
659views

Inverse Scaling Partitioned Data

I have scaled an original matrix A with sklearn's StandardScaler, resulting to a matrix S. I then partitioned the result into ...
ccccc's user avatar
0votes
1answer
280views

How to scale a subset of data with respect to the entire dataset

I am developing a financial time-series prediction model using sklearn using StandardScaler for scaling purposes. I train a model, and then use the model regularly ...
functorial's user avatar
0votes
1answer
751views

Feature scaling in Linear Regression

I always use Linearregression() class in sklearn library for creating a linear regression model. According to my understanding, we need feature scaling in linear ...
AAA's user avatar
  • 35
0votes
1answer
76views

How to Scale target feature

How should I scale target feature? Should I use scaler as fit_transform on y_train, and just fit on y_test to avoid leaking data?
Rus Zzzeta's user avatar
0votes
1answer
8kviews

__init__() takes 1 positional argument but 4 were given sklearn standard scaler error

I defined a class like below: ...
Mohsen Mahmoodzadeh's user avatar
0votes
1answer
3kviews

For sklearn ML algorithms, is it possible to use boolean data alongside continuous data for the predictive data, and if so how can the data be scaled?

I have a medium size data set (7K) of patient age, sex, and pre-existing conditions. Age of course is from 0-101, sex is 1 for male, 2 for female, and -1 for diverse. All the pre-conditions are ...
DrWhat's user avatar
1vote
1answer
971views

How are the values for the `sex` feature in sklearn Diabetes dataset obtained?

I'm just starting out with using sklearn for my own Machine Learning project and I'm using sklearn's built-in "Diabetes&...
Liam Gower's user avatar
0votes
1answer
232views

how to choose between data normalization or standadization?

I have been studying about data scaling. Two common methods for it are the StandardScaler and MinMaxScaler. As I understood, StandardScaler expects the data to be normally distributed, but I have seem ...
panchester's user avatar

153050per page
close